home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / music / 188 / c / batch.doc < prev    next >
Text File  |  1987-10-14  |  2KB  |  43 lines

  1.        This document was generated from file batch.FOR
  2.                                  on 20-NOV-85 at  1: 9:36
  3.  ________________________________________________________________________
  4.  ________________________________________________________________________
  5.  
  6.  
  7.          PROGRAM BATCH
  8.  C               L. R. Fortney  10/10/87
  9.  C           This programs reads the command line and writes the parameters
  10.  C       to a file BATCH.DAT.  Parameters must be separated by commas.
  11.  C       The program is useful for providing a text file to be read by
  12.  C       a redirected input to programs like F77 and F77L.  It does not
  13.  C       work with STwriter.
  14.  C
  15.  C           The following are examples of batch files for MSDOS and Gulam
  16.  C       For MSDOS from Michtron:  This file is labeled FLG.BAT and generates
  17.  C       an F77 compile, link, and execute (go) operation.  Within MSDOS it
  18.  C       is invoked by typing:  FLG mysource mylib
  19.  C       The program generates an intermediate scratch file BATCH.DAT
  20.  C
  21.  C               BATCH %1,%2
  22.  C               D:\F77 <BATCH.DAT
  23.  C               BATCH L %2,L SYSTEM,L F77.RL,F %1,g,q,y
  24.  C               D:\F77L <BATCH.DAT
  25.  C               DEL BATCH.DAT
  26.  C               %1
  27.  C
  28.  C       For the Gulam shell the same result is obtained with:
  29.  C
  30.  C               batch $1,$2
  31.  C               f77 <batch.dat
  32.  C               batch l $2,l system,l f77.rl,f $1,g,q,y
  33.  C               f77l <batch.dat
  34.  C               rm batch.dat  #(or perhaps Rm batch.dat)
  35.  C               $1
  36.  C
  37.  ________________________________________________________________________
  38. L. R. Fortney
  39. Physics Dept
  40. Duke University
  41. Durham, NC 27706
  42. Genie mail address DUKEL
  43.